<!DOCTYPE html>
<html>


<!--不同就业类型就业率-->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>H+ 后台主题UI框架 - 百度ECHarts</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="../favicon.ico">
    <link href="../css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <link href="../css/animate.min.css" rel="stylesheet">
    <link href="../css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>不同残疾类别就业率</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="../graph_flot.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <ul class="dropdown-menu dropdown-user">
                            <li><a href="../graph_flot.html#">选项1</a>
                            </li>
                            <li><a href="../graph_flot.html#">选项2</a>
                            </li>
                        </ul>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="echarts" id="chart1" style="height: 500px"></div>
                </div>
            </div>
        </div>
        </div>


</div>
<script src="../js/jquery.min.js?v=2.1.4"></script>
<script src="../js/bootstrap.min.js?v=3.3.6"></script>
<script src="https://cdn.bootcss.com/echarts/3.6.2/echarts.js"></script>
<script src="../js/content.min.js?v=1.0.0"></script>
<script src="../js/demo/echarts-demo.min.js"></script>
<script src="../js/template.js"></script>
<script>

    var myChart1 = echarts.init(document.getElementById('chart1'));
    option1 = {
        tooltip: {
            trigger: 'axis',
            axisPointer: {
                type: 'cross',
                crossStyle: {
                    color: '#999'
                }
            }
        },
        toolbox: {
            feature: {
                dataView: {
                    show: true, readOnly: false,
                    optionToContent: function (opt) {
                        var axisData = opt.xAxis[0].data;
                        var series = opt.series;
                        var table = '<table class="table"><tbody><tr>'
                                + '<th>就业类型</th>'
                                + '<th>' + series[0].name + '</th>'
                                + '<th>' + series[1].name + '</th>'
                                + '</tr>';
                        for (var i = 0, l = axisData.length; i < l; i++) {
                            table += '<tr>'
                                    + '<td>' + axisData[i] + '</td>'
                                    + '<td>' + series[0].data[i] + '</td>'
                                    + '<td>' + series[1].data[i] + '</td>'
                                    + '</tr>';
                        }
                        table += '</tbody></table>';
                        return table;
                    }
                },
                magicType: {show: true, type: ['line', 'bar']},
                restore: {show: true},
                saveAsImage: {show: true},

            }
        },
        legend: {
            data:['人数','占比']
        },
        grid:{
            x:50,
            y:50,
            x2:50,
            y2:30,
            borderWidth:1,
        },
        xAxis: [
            {
                type: 'category',
                data: ['按比例就业','集中就业','个体就业','社区就业','公益性岗位就业','辅助行就业','居家就业','农村种养殖','其他'],
                axisPointer: {
                    type: 'shadow'
                }
            }
        ],
        yAxis: [
            {
                type: 'value',
                name: '数量',
                min: 0,
                max: 600,
                interval: 50,
                axisLabel: {
                    formatter: '{value}万'
                }
            },
            {
                type: 'value',
                name: '',
                min: 0,
                max: 70,
                interval: 10,
                axisLabel: {
                    formatter: '{value} %'
                }
            }
        ],
        series: [
            {
                name:'人数',
                type:'bar',
                data:[67.8,30.0,65.0,7.9,8.0,13.8,121.0,446.1,135.3]
            },
            {
                name:'占比',
                type:'line',
                yAxisIndex: 1,
                data:[7.6,3.4,7.3,0.9,0.9,1.5,13.5,49.8,15.1]
            }
        ]
    };
    myChart1.setOption(option1);
    option6 = {
        title: {
            text: '残疾文化程度',
            x: 'left'
        },
        tooltip: {
            trigger: 'item',
            formatter: "{a} <br/>{b}: {c} ({d}%)"
        },
        legend: {
            orient: 'vertical',
            x: 'right',
            data:['文盲','小学','初中','高中','中专','大专','本科及以上','其他']
        },
        series: [
            {
                name:'人数占比',
                type:'pie',
                radius: ['50%', '60%'],
                avoidLabelOverlap: false,
                label: {
                    normal: {
                        show: false,
                        position: 'center'
                    },
                    emphasis: {
                        show: true,
                        textStyle: {
                            fontSize: '30',
                            fontWeight: 'bold'
                        }
                    }
                },
                labelLine: {
                    normal: {
                        show: false
                    }
                },
                data:[
                    {value:9.0, name:'文盲'},
                    {value:26.9, name:'小学'},
                    {value:28.4, name:'初中'},
                    {value:6.5, name:'高中'},
                    {value:1.4, name:'中专'},
                    {value:1.0, name:'大专'},
                    {value:0.4, name:'本科及以上'},
                    {value:1.7, name:'其他'}
                ]
            }
        ]
    };
</script>
</body>
</html>
